<template>
  <div class='div_box'>
        <el-dialog title="告警回放" :visible.sync="dialogPlayback" v-if="dialogPlayback" width="500px" height="600px" top="8vh"
            :close-on-click-modal="false" @close="cancelAddDia" >

            <div class='alarmPlay'>
                <div v-for="(item, index) in alarmPlayList" :key="index">
                    <div>
                        设备编码:
                        {{ item.imei }}
                    </div>
                    <video controls :src="item.url"></video>
                </div>
            </div>
        </el-dialog>
    </div>
</template>

<script>
export default {
    props: ['alarmPlayList'],
 components: {
 },
 data() {
 return {
    dialogPlayback: false,
 }
 },
 computed: {
 },
 watch: {},
 methods: {
    cancelAddDia() {

}
 },
 created() {
 
 },
 mounted() {
 
 },
}
</script>

<style lang='less' scoped>
 .div_box {
    // height: 79vh;
    // height: calc(100vh - 122px);
    overflow: auto;
    width: 100%;

    .alarmPlay {
        overflow: auto;
        width: 100%;
        display: flex;
        flex-wrap: wrap;

        >div {
            width: 100%;
            padding: 10px;
            box-sizing: border-box;

            >div:first-of-type {
                color: @primaryThemeTxtColor2;
                margin-bottom: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            video {
                width: 100%;
                height: auto;
            }
        }
    }
}
::v-deep .el-dialog__body{
    padding: 20px;
}
</style>